package com.msb.service.impl;

import com.msb.service.DemoService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @author sunpeng
 * @Date 2021-07-20 16:12
 */
public class DemoServiceImpl extends UnicastRemoteObject implements DemoService {
    //不加，idea提示未处理异常，可能是默认构造器不能处理异常
    public DemoServiceImpl() throws RemoteException {
        super();
    }

    @Override
    public String demo1(String str) throws RemoteException {
        System.out.println(str);
        return str+"123";
    }
}
